home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / EleOfC++ vrs 0.1 / TextEdit / main.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-14  |  699 b   |  37 lines  |  [TEXT/KAHL]

  1. /*
  2. ** main function for TextEdit applictation
  3. **
  4. ** Copyright © 1991 Mark Gross 
  5. ** (RR2, Box 84, Clayville, NY 13322);         
  6. ** this file may be published everywhere, but no charge
  7. ** may be made for its use.  Please contact me about any bugs found.
  8. ** I'm also looking for Macintosh development work, so drop me a line
  9. ** if you think I could help.  
  10. **    
  11. */
  12.  
  13. #include "TTEApp.h"
  14. #include <oops.h>
  15. #include "TScrollDoc.h"
  16.  
  17. TScrollDoc *gCurrScrollDoc;
  18.  
  19. main()
  20. {
  21.     TTEApp    *theApp;
  22.     
  23.     MoreMasters();
  24.  
  25.     theApp = (TTEApp *)new(TTEApp);
  26.     theApp->Init();
  27.     
  28.     if(theApp->InitApp() )
  29.     {
  30.         if(!theApp->OpenDocFromFinder() )
  31.             theApp->OpenNewDoc();
  32.             
  33.         theApp->EventLoop();
  34.         theApp->CleanUp();
  35.     }
  36. }/*the end*/
  37.